function deletePitch(pitchIdVal, pagingIndex){
	if(window.confirm("Are you sure you want to delete this pitch?")){
		$.post("pitch/deletePitch",{
			pitchId:pitchIdVal
		}, function(data){
			if(data.success){
				if(pagingIndex >= 0){
					window.location.href="studentMyPitches?page="+pagingIndex;
				}else{
					window.location.href="studentMyPitches";
				}
			}else{
				alert(data.errorMessage);
			}
		}, "json");
	}
}